package com.boxtelecom.users;

public class Presence {

	private String _type;
	private String _mode;
	private static final String UNAVAILABLE = "unavailable";
	
	public Presence(){
		_type = UNAVAILABLE;
		_mode = null;
	}
	
	public String getType(){
		return _type;
	}
	
	public void setType(String aType){
		this._type = aType;
	}
	
	public String getMode(){
		return _mode;
	}
	
	public void setMode(String aMode){
		this._type = aMode;
	}
	
	public boolean isAvailable(){
		if(!_type.equals(UNAVAILABLE)){
			return true;
		} else {
			return false;
		}
	}
	
	public boolean isMode(){
		if(_mode != null){
			return true;
		} else {
			return false;
		}
	}
}
